{
  "live-restore": {{ docker_live_restore | default(false) | lower }},
  "data-root": "{{ docker_data_root }}",

  "log-opts": {
    "max-size": "15m",
    "max-file": "5",
  },

  "registry-mirrors": [
      {% if nexus_enabled %}
        "http://{{ nexus_docker_proxy | replace('/', '') }}",
        "http://{{ nexus_docker_hosted | replace('/', '') }}",
      {% endif %}
      {% for mirror in (docker_default_mirrors | sort) %}
        "{{ mirror }}"{{ (loop.last) | ternary('', ',') }}
      {% endfor %}
  ],

  {% if nexus_enabled %}
    "insecure-registries": [
      "{{ nexus_docker_proxy | replace('/', '') }}",
      "{{ nexus_docker_hosted | replace('/', '') }}"
    ],
  {% endif %}
}